package 华为.text01_字符串的最后一个单词的长度;


import java.util.Scanner;

public class Main{
    public  static void  main(String [] args) throws Exception{
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        String[] result = s.split(" ");
        System.out.println(result[result.length-1]);
    }

}